#!/bin/bash
HOME=/people/cs/y/yxc125630/voting
USER=yxc125630
for server in `cat servers`
do
	ssh $USER@$server "cd $HOME; java -jar VotingServer.jar > $server.log 2>&1 &" 
done
sleep 5
for client in `cat clients`
do
	ssh $USER@$client "cd $HOME; java -jar VotingClient.jar > $client.log 2>&1 &" 
done
